版权声明:本文为博主原创文章,转载请注明出处:http://blog.jerkybible.com/2013/10/09/2013-10-09-CODE 72 Rotate List/
访问原文「CODE 72. Rotate List」
Given a list, rotate the list to the right by k places, where k is non-negative.
For example:
Given 1->2->3->4->5->NULL
and k = 2
,
return 4->5->1->2->3->NULL
.
|
|